<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js//vue.js"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item in arr">
                <h3>姓名：{{item.name}}</h3>
                <p>位置:{{item.class}}</p>
            </li>
        </ul>
        <ul>
            <li v-for="(val,key,index) in info">
                {{val+key+index}}
            </li>
        </ul>

    </div>
    <script>
    new Vue({
        el:"#app",
        data:{
            arr:[],
            info:{
                name:"周杰伦",
                say:"要来开演唱会"
            }
        },
        mounted(){
            setInterval(()=>{
                this.arr=[
                    {
                        name:"周杰伦",
                        class:"香港"
                    },
                    {
                        name:"刘德华",
                        class:"上海"
                    },
                    {
                        name:"蔡依林",
                        class:"北京"
                    }
                ]
            },1000)

        }
    })    
        
     </script>
</body>
</html>